﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using DatabaseComponent;

public partial class SupportMainEN : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!Page.IsPostBack)
        {
            checkSecurityAndCustomizePage();
        }
    }


    /// <summary>
    /// this function will check the security and customize page
    /// </summary>
    private void checkSecurityAndCustomizePage()
    {
        Persons objPersons = GlobalVars.getCurrentPerson();

        if (!objPersons.lstAllRulesIDs.Contains((long)RulesEnum.Ticket_add_page))
        {
            Response.Redirect("LoginEN.aspx");

        }
    }
}